Mikrotik - AccessPoint with LTE WAN Kategoria: MikroTik | Tagi: lte, mikrotik | Autor: Bartłomiej Gałęzia

1. Default configuration

System -> Reset Configuration -> [check] No Default Configuration -> [Reset Configuration]

System -> Users -> [admin] -> Password -> ***** -> [OK]

System -> Identity -> [MyMikrotik] -> [OK]

System -> Clock

Time: [current time]

Date: [current date]

Time Zone Name: Europe/Warsaw

2. Interface List

Interfaces -> [zakładka] Interface List -> [Lists] -> [+]

Name: WAN

[OK]

Interfaces -> [zakładka] Interface List -> [+]

List: WAN

Interface: ether1, lte1

[OK]

Bridge -> [zakładka] Bridge -> [+]

Name: LAN

[OK]

Bridge -> [zakładka] Ports -> [+]

Interface: ether2, ether3, ether4, ether5, wlan1

Bridge: LAN

[OK]

 

3. DHCP

IP -> Addresses -> [+]

Address: 10.20.30.1/24

Interface: LAN

[OK]

 

IP -> Pool -> [zakładka] Pools -> [+]

Name: pool_dhcp

Addresses 10.20.30.100-10.20.30.200

[OK]

 

IP -> DHCP Server -> [zakładka] DHCP -> [+]

Name: dhcp_server

Interface: LAN

Address Pool: pool_dhcp

[Apply]

[Enable]

 

IP -> DHCP Server -> [zakładka] Networks -> [+]

Address: 10.20.30.0/24

Gateway: 10.20.30.1

DNS Servers: 8.8.8.8

 

System -> Reboot -> [Yes]

 

4. Firewall

IP -> Firewall -> [zakładka] NAT -> [+]

Chain: scrnat

Out. Interface List: WAN

[zakłada] Action

Action: masquerade

[OK]

 

5. WLAN

Wireless -> [zakładka] Security Profiles [+]

Name: profile_wlan

Mode: dynamic keys

Authentication Types: WPA2 PSK

WPA2 Pre-Shared Key: *****

Management Protection: allowed

[OK]

 

Wireless -> [zakładka] WiFi Interfaces -> wlan1

[Advanced Mode]

[zakładka] Wireless

Mode: ap bridge

SSID: my_wifi

Security profile: profile_wlan

[Apply]

[Enable]

 

-------- Export config --------

/interface lte set [ find ] name=lte1
/interface bridge add name=LAN
/interface list add name=WAN
/interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik
/interface wireless security-profiles add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=profile_wlan supplicant-identity="" wpa2-pre-shared-key=my_password
/interface wireless set [ find default-name=wlan1 ] disabled=no mode=ap-bridge security-profile=profile_wlan ssid=my_wifi
/ip pool add name=pool_dhcp ranges=10.20.30.100-10.20.30.200
/ip dhcp-server add address-pool=pool_dhcp disabled=no interface=LAN name=dhcp_server
/interface bridge port add bridge=LAN interface=ether2
/interface bridge port add bridge=LAN interface=ether3
/interface bridge port add bridge=LAN interface=ether4
/interface bridge port add bridge=LAN interface=ether5
/interface bridge port add bridge=LAN interface=wlan1
/interface list member add interface=ether1 list=WAN
/interface list member add interface=lte1 list=WAN
/ip address add address=10.20.30.1/24 interface=LAN network=10.20.30.0
/ip dhcp-server network add address=10.20.30.0/24 dns-server=8.8.8.8 gateway=10.20.30.1
/ip firewall nat add action=masquerade chain=srcnat out-interface-list=WAN
/system clock set time-zone-name=Europe/Warsaw
/system identity set name=MyMikrotik

Dodaj komentarz

Brak komentarzy, bądź pierwszy i dodaj swój komentarz